home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15453 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  32 lines

  1. Path: mda014.cc.monash.edu.au!not-for-mail
  2. From: sjlam1@mda014.cc.monash.edu.au (Mr Stuart Lamble)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do the functions in <time.h> work?
  5. Date: 19 Apr 1996 04:09:31 GMT
  6. Organization: Monash University
  7. Message-ID: <4l73lr$7ss@harbinger.cc.monash.edu.au>
  8. References: <317653DA.5066@ix.netcom.com>
  9. NNTP-Posting-Host: mda014.cc.monash.edu.au
  10. X-NNTP-Posting-User: sjlam1
  11. X-Newsreader: TIN [UNIX 1.3 950823BETA PL0]
  12.  
  13. Jane Harper (jharper@ix.netcom.com) wrote:
  14. : This is sort of a homework question, so flame away if you must ...
  15. : ...but I'm attempting to write a bit of code to access the system time 
  16. : and when I call ctime() it returns January, 2014 (!!!!)  How does ctime 
  17. : work (or any of the fx in <time.h> for that matter, since they're all 
  18. : connected)?  What are some possible reasons for this bogus return?
  19.  
  20. *sigh* RTFMP (Read The Flipping Man Page): it says that ctime expects
  21. a single parameter:
  22.  
  23. char *ctime(const time_t *timer);
  24.  
  25. Helpful hint: look at the parameters and return values of the time()
  26. function.
  27.  
  28. -- 
  29. I now have a .sig of my vewwy own. I shall hug him, and love him,
  30. and call him George.
  31.